package com.zp.business.service.lab;

import com.zp.business.entity.lab.LabApply;
import com.zp.business.entity.lab.LabItem;
import com.zp.business.entity.lab.bo.LabItemBo;
import com.zp.business.entity.lab.bo.SaveLabItemBo;
import com.zp.business.entity.lab.vo.LabItemVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 检验申请子表Service接口
 *
 * @author zhang peng
 * @ date 2024-03-05
 */
public interface ILabItemService {

    /**
     * 查询检验申请子表
     */
    LabItemVo queryById(String id);

    /**
     * 查询检验申请子表列表(分页)
     */
    TableDataInfo<LabItemVo> queryPageList(LabItemBo bo, PageQuery pageQuery);

    /**
     * 查询检验申请子表列表(不分页)
     */
    List<LabItemVo> queryList(LabItemBo bo);

    /**
     * 修改检验申请子表
     */
    Boolean insertByBo(LabItemBo bo);

    /**
     * 修改检验申请子表
     */
    Boolean updateByBo(LabItemBo bo);

    /**
     * 校验并批量删除检验申请子表信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 组织、保存项目明细
     *
     * @param labApply
     * @param saveLabItemBo
     * @return
     */
    List<LabItem> initLabItemAndSave(LabApply labApply, List<SaveLabItemBo> saveLabItemBo);

    Boolean deleteByBo(String labApplyId);
}
